<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>原生js的类操作与jquery的类操作的区别</title>
    <script src="../jquery.min.js"></script>
</head>
<body>
  <div class="one"></div>
  <script>
    //原生js会覆盖原来的类名
    // var one = document.querySelector('.one');
    // one.className = 'two';
    //jquery只会添加(删除同理)
    $('.one').addClass('two');
  </script>
</body>
</html>